package com.etc.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.etc.entity.Order;
import com.etc.entity.Room;

@Repository(value="userOrderMapper")
public interface UserOrderMapper {
	
	/**
	 * 根据入住、退房时间、房间类型，查询可入住的房间
	 * @param orderstartdate
	 * @param orderenedate
	 * @return
	 */
	
    List<Room> selectRoom(@Param("orderstartdate")String orderstartdate,@Param("orderenedate")String orderenedate,@Param("roomtype")Integer roomtype);

    int addUserOrder(Order order);
   
}